/* pages/promotion/promotion.wxss */

page {
    background: #f6f6f6;
}

.search {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30rpx 20rpx;
    background-color: white;
}

.search>input {
    flex: 1;
    height: 72rpx;
    line-height: 72rpx;
    font-size: 28rpx;
    padding: 0;
    margin: 0;
    background: #f6f6f6;
    border-radius: 40rpx;
    color: #333;
    text-align: center;
}

.search>view {
    width: 80rpx;
    color: #ff5c6d;
    font-size: 28rpx;
    line-height: 36rpx;
    text-align: right;
}

.viewa {
    width: 100%;
    height: 100rpx;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
}

.viewa_inner {
    padding: 30rpx 0;
    flex: 1;
    box-sizing: border-box;
    transition: 0.2s;
    color: #999;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.viewa_inner>text {
    font-size: 28rpx;
}

.cheak {
    color: #333;
}

.cheak::after {
    content: "";
    width: 40rpx;
    height: 4rpx;
    background-color: #ff5c6d;
    position: absolute;
    bottom: 18rpx;
    left: calc(50% - 20rpx);
}

.viewa_inner>image {
    display: block;
    width: 46rpx;
    height: 46rpx;
}

/* 商品列表 */

.viewc {
    height: calc(100vh - 100rpx);
    box-sizing: border-box;
    padding: 0 3vw;
    position: fixed;
    top: 100rpx;
    left: 0;
}

.viewc_inner {
    width: 336rpx;
    box-sizing: border-box;
    background: white;
    border-radius: 5px;
    margin-bottom: 30rpx;
    display: inline-block;
    vertical-align: top;
    position: relative;
}

.viewc_inner:nth-child(2n) {
    margin-left: 22rpx;
}
.viewc_inner:nth-child(2n-1) {
    margin-left: 30rpx;
}

.viewc_inner:nth-child(1), .viewc_inner:nth-child(2) {
    margin-top: 20rpx;
}

.viewc_inner_a {
    display: block;
    width: 334rpx;
    height: 334rpx;
    border-radius: 5px 5px 0 0;
}

.viewc_inner_b {
    box-sizing: border-box;
    padding: 10rpx 20rpx;
    font-size: 28rpx;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.viewc_inner_c {
    box-sizing: border-box;
    padding: 0 20rpx 10rpx;
    color: #ff3d3d;
    min-height: 70rpx;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.isvip {
    display: inline-block;
    min-width: 50%;
}

/* 商品列表 */

.loading {
    margin: 50rpx;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading>image {
    width: 50rpx;
    height: 50rpx;
}

.loading>text {
    font-size: 24rpx;
    color: #999;
    margin-left: 20rpx;
}
